<?php
/**
 * Created by PhpStorm.
 * User: bg
 * Date: 2017/8/26 0026
 * Time: 上午 10:21
 */

namespace app\index\controller;

use think\Controller;
use app\common\model\Configuration;
use app\common\model\StationContent;

/*
 * baiguang测试控制类
 */
class Baiguang extends Controller
{
    public $configDao ;
    public $staticonDao ;
    public function __construct()
    {
        parent::__construct();
        $this->configDao = new Configuration();
        $this->staticonDao = new StationContent();
    }

    public function index()
    {
        $data['content'] = 'test1111';
        $data['send_time'] = time();
        $ret = $this->staticonDao->search(2);
        dump($ret);
    }

    public function login(){
        return $this->fetch();
    }

}


